<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>家庭成员信息&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</title>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/common/prototype.js"></script>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/public.js"></script>
<script language="JavaScript"  src="${ctx}/scripts/show.js"></script>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/global.js"></script>
<link href="${ctx}/styles/extremetable/style.css" type="text/css" rel="stylesheet" />
<link href="${ctx}/styles/grid.css" rel="stylesheet" type="text/css">
<link href="${ctx}/styles/listTable.css" rel="stylesheet" type="text/css">
<link href="${ctx}/styles/show.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/styles/public.css" rel="stylesheet" type="text/css">
<link href="${ctx}/styles/aux_window.css" rel="stylesheet" type="text/css">
<link href="${ctx}/styles/extremetable/extremecomponents.css" type="text/css" rel="stylesheet" />
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/public3.js"></script>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/rightmenu2.js"></script>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/div/common.js"></script>
<script type="text/javascript" src="${ctx}/scripts/div/window.js"></script>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/extremetable/extremecomponents.js"></script>
<script>

	function resize(){
		parent.window.document.all('memberBaseList').style.height=document.body.scrollHeight;
	}
	//人员详细信息
	function showDetail(){
		parent.showDetail();
	}

	//当改点选表格行数据时，触发本事件
	function changeID(oid,hid,pid){
		$('edit_guestRecordId').value=oid;
		$('edit_houseRecordId').value=pid;
		$('edit_oldId').value=hid;
	}

	function freshFrame(){
		document.forms.ec.ec_p.value=document.getElementById("ec_p").value;
		document.forms.ec.submit();
	}

</script>
</head>
<body onload="resize()">
<input type="hidden" name="edit_guestRecordId" value="" />
<input type="hidden" name="edit_houseRecordId" value="" />
<input type="hidden" name="edit_oldId" value="" />
<ec:ceTable items="memberInfoList"
	action="${ctx}/customer_memberAction.do?method=initmemberBaseList&keyId=${keyId}"
	var="memberItem"
	view="pmsview"
	styleClass="gridData2"
	rowsDisplayed="5" >
	<ec:ceRow styleClass="grid"
	ondblclick="showDetail()" onclick="changeID(${memberItem.ownerId},${memberItem.participantId},${memberItem.houseId})" onContextMenu="return ShowContextMenu(event,'quick_rightmenu')">
		<ec:ceColumn headerCell="pmsHeadrCell" title="姓名" property="participantName" value="${memberItem.participantName}" sortable="true" width="7%" styleClass="align_left" />
		<ec:ceColumn headerCell="pmsHeadrCell" title="房号" property="houseNumber" value="${memberItem.houseNumber}" width="7%" styleClass="align_left"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="与业主/租户关系" property="relation" value="${memberItem.relation}" width="12%" styleClass="align_left"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="登记日期" property="sysDate" value="${memberItem.sysDate}" width="8%" styleClass="align_left"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="证件类型" property="ID_type" value="${memberItem.ID_type}" sortable="true" width="11%" styleClass="align_left"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="证件号码" property="certificateNo" value="${memberItem.certificateNo}" sortable="true" width="12%" styleClass="align_left"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="入住日期" property="inDate" value="${memberItem.inDate}" width="8%" styleClass="align_left"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="搬出日期" property="outDate" value="${memberItem.outDate}" width="8%" styleClass="align_left"/>
	</ec:ceRow>
</ec:ceTable>
<!--------------menu01------------------------->
<div id="quick_rightmenu" style="display:none;" oncontextmenu="return false" class="quick_rightmenu">
  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="grid_quickMenu_bg">
    <tr>
      <td><table width="100%" border="0" cellpadding="2" cellspacing="0">
        <tr>
          <td class="quickMenu_toolbarico"><a href="#"  onClick="parent.openAddMember();" onFocus="this.blur()"><img src="${ctx}/images/ico_newfile.gif" border="0" align="absbottom" alt="新建"/>&nbsp;新 建</a></td>
          </tr>

		<tr>
          <td class="quickMenu_toolbarico"><a href="#" onFocus="this.blur()" onClick="parent.openEditMember();"><img src="${ctx}/images/ico_amend.gif" alt="" width="16" height="16" border="0" align="absbottom"> 修
              改</a></td>
          </tr>

       <tr>
          <td class="quickMenu_toolbarico"><a href="#" onClick="parent.showDelete();" onFocus="this.blur()"><img src="${ctx}/images/ico_delete.gif" alt="" width="16" height="16" border="0" align="absbottom"> 删
              除</a></td>
          </tr>

      </table></td>
    </tr>
  </table>
</div>

</body>
</html>